
package com.sausageking.server;

import org.joda.time.DateTime;

import com.sausageking.client.ConsumerService.AuthType;
import com.sausageking.shared.Merchant;

public interface AuthManager {

  boolean authenticate(AuthType authType, String email, String secret);

  String hashPassword(String password);

  boolean hasPassword(String email);

  // Purchase confirmation code
  String getPurcaseConfirmationCode(Merchant merchant, DateTime date);

  boolean validatePurchaseConfirmationCode(Merchant merchant, DateTime date, String code);
}
